import request from '@/utils/request'
import qs from "querystring";
export function getDetail(id) {
    return request({
        url: '/goods?id='+id,
        method: 'get'
    })
}

export function getRelevant(params) {
    return request({
        url: '/goods/relevant',
        method: 'get',
        params:params
    })
}

export function getgoods(id) {
	return request({
		url: "/goods",
		method: "get",
		params: { id },
	});
}


export function gethot(obj) {
	return request({
		url: "/goods/hot?" + qs.stringify(obj),
		method: "get",
	});
}
export function getevaluate(id) {
	return request({
		url: `/goods/${id}/evaluate`,
		method: "get",
	});
}
